package com.itetchologyandenglish.home.mapper;

import com.itetchologyandenglish.home.enetity.AuthUser;
import com.itetchologyandenglish.home.enetity.Roles;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liuchang
 */
public interface UserMapper {
    AuthUser loadUserByUsernameAndPassword(@Param("username")String username,@Param("password")String password);
    int addUserByAll(@Param("user")AuthUser user);
    int deleteByUser(Integer id);
    int deleteByAdmin(Integer id);
    int update(@Param("user") AuthUser user);
    List<AuthUser> getAllUser();
    String getRoleIdById(Integer id);
    void deleteRAByRoleId(Integer roleId);
    AuthUser getUPById(Integer id);
    int updatedelete(Integer id);
    int deactivate(Integer id);
    AuthUser getUserById(Integer id);
    int removeAdmin(Integer id);

}
